package com.entity.journal;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Chenql
 * date 2012-05-23
 * 个人模块--日志评论实体类
 *
 */

@Entity
@Table(name = "t_journal_comment")
public class JournalComment implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5747314662911818945L;

	@Id 
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	private Integer journalId;
	
	private String commentContent;
	
	/**
	 * 评论者Id
	 */
	private Integer commentUserId;
	
	/**
	 *日志主人
	 */
	private Integer userId;
	
	public JournalComment()
	{
		super();
	}
	
	public JournalComment(Integer id,Integer journalId,String commentContent,Integer commentUserId,
			Integer userId)
	{
		super();
		this.id = id;
		this.journalId = journalId;
		this.commentContent = commentContent;
		this.commentUserId = commentUserId;
		this.userId = userId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getJournalId() {
		return journalId;
	}

	public void setJournalId(Integer journalId) {
		this.journalId = journalId;
	}

	public String getCommentContent() {
		return commentContent;
	}

	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}

	public Integer getCommentUserId() {
		return commentUserId;
	}

	public void setCommentUserId(Integer commentUserId) {
		this.commentUserId = commentUserId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
}
